package ncme.auto.framework.test.permission.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;

import java.util.Date;

@TableName("permission_permission")
public class Permission {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

	private Integer typeId;

	private Integer subPermId;

    @TableLogic
    private Date isDeleted;

    @Version
    private Integer version;

    public Integer getId() { return id; }

    public void setId(Integer id) { this.id = id; }

    public Integer getTypeId() { return typeId; }

    public void setTypeId(Integer typeId) { this.typeId = typeId; }

    public Integer getSubPermId() { return subPermId; }

    public void setSubPermId(Integer subPermId) { this.subPermId = subPermId; }

    public Date getIsDeleted() { return isDeleted; }

    public void setIsDeleted(Date isDeleted) { this.isDeleted = isDeleted; }

    public Integer getVersion() { return version; }

    public void setVersion(Integer version) { this.version = version; }

    @Override
    public String toString() {
    return "permission{" +
            "id=" + id +
            ", typeId=" + typeId +
            ", subPermId=" + subPermId +
            ", isDeleted=" + isDeleted +
            ", version=" + version +
            '}';
    }

}
